function Damage( ent, inflictor, attacker, amount, dmginfo )
    if ent:IsPlayer() then
        if attacker:IsNPC() then
            dmginfo:ScaleDamage(7)
            if attacker:GetClass() == "npc_headcrab_fast" then
                ent:SetHealth(1)
                dmginfo:ScaleDamage(0)
            end
        end
    end
end
hook.Add("EntityTakeDamage", "Damage", Damage)
function Death( victim, inflictor, killer )
    if victim:IsPlayer() then
        local class = killer:GetClass()
        local name = "Unknown"
        if class == "npc_zombie" then name = "A zombie"
        elseif class == "npc_fastzombie" then name = "A fast zombie"
        elseif class == "npc_antlion" then name = "An antlion"
        elseif class == "npc_rollermine" then name = "A rollermine"
        elseif class == "npc_manhack" then name = "A manhack"
        elseif class == "npc_headcrab_fast" then name = "A headcrab"
        elseif class == "npc_headcrab" then name = "A headcrab"
        elseif class == "npc_antlionguard" then name = "The antlion guardian" end
        for k, v in pairs(player.GetAll()) do
            if killer:IsNPC() then
                v:PrintMessage(HUD_PRINTTALK, name .. " has killed " .. victim:Name() .. "!")
            else
                v:PrintMessage(HUD_PRINTTALK, victim:Name() .. " has died!")
            end
        end
    end
end
hook.Add("PlayerDeath", "Death", Death)





